<?php

/**
 * needs php 5.3 so we can't use it for add-ons
 */
abstract class Ragtek_Helper_Abstract {

    static private $instances = array();

    public static function getInstance() {
        $class = get_called_class();

        if (empty(self::$instances[$class])) {
            self::$instances[$class] = new $class;
        }
        return self::$instances[$class];
    }

    protected function __clone() {
        
    }
}